<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="../../public/public.jsp" %>

<% int rowColor = 1; 
	int pageSize = ((Integer)valueStack.findValue("pageForm.pageSize")).intValue();
	int pageNo = ((Integer)valueStack.findValue("pageForm.pageNo")).intValue();
	int rowNo = (pageNo-1)*pageSize+1;
%>
    <table border="0" width="100%" height="100%" bgcolor="#999999" border"0" align="center" cellspacing="1"> 
    	<thead>
    	<!-- 
    	<s:if test="pagePosition.toLowerCase().equals('top') || pagePosition.toLowerCase().equals('all')">
    		<tr bgcolor="#FFFFFF">
    			<td colspan="20">
    				<ss:page value="pageForm"></ss:page>
    			</td>
    		</tr>
    		</s:if>
    	 -->
    	 <input type="hidden" id="po.parentId" name="po.parentId" value="<s:property value="po.parentId"/>"/>
    		<tr height="20" bgcolor="#A0C6E5">
    			<th align="left" width="3%"><input type="checkbox" name="checkAll" onclick="selectAll(this.checked)" alt="全选"></th>
    			<th align="left" width="5%"><font color="snow" size="2">序号</font></th>
    			<th align="left" width="10%"><font color="snow" size="2">模块名称</font></th>
    			<th align="left" width="10%"><font color="snow" size="2">中文名称</font></th>
    			<th align="left" width="40%"><font color="snow" size="2">URL地址</font></th>
    			<th align="left" width="5%"><font color="snow" size="2">状态</font></th>
    			<th align="left" width="5%"><font color="snow" size="2">操作</font></th>
    			<th align="left" width="15%"><font color="snow" size="2">备注</font></th>
    		</tr>
    	</thead>
    	<tbody>
    		<s:iterator value="data">
    		<% if((rowColor++ %2)==0){ %>
    		<tr bgcolor="#FFFFCC" onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)">
    		<%}else{ %>
    		<tr bgcolor="#FFFFFF" onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)">
    		<%} %>
    			<td><input type="checkbox" name="formMap.ids" value="<s:property value='id'/>"></td>
    			<th><font color="#000000" size="2">
    			<a href="javascript:goUpdate(<s:property value='id'/>);"><%=rowNo++ %></a>
    			</font></th>
    			<td><font color="#000000" size="2"><s:property value="moduleName"/></font></td>
    			<td><font color="#000000" size="2"><s:property value="moduleCname"/></font></td>
    			<td><font color="#000000" size="2"><s:property value="moduleUrl"/></font></td>
    			<td><font color="#000000" size="2"><s:if test="sts=='ACTV'">可用</s:if><s:else>禁用</s:else></font></td>
    			<td><font color="#000000" size="2"><s:if test="parentId!=0"><a href="javascript:goPerms(<s:property value='id'/>)">操作</a></s:if><s:else>操作</s:else></font></td>
    			<td><font color="#000000" size="2"><s:property value="remark"/></font></td>
    		</tr>
    		</s:iterator>
    	</tbody>
		<tfoot>
		<!-- 
			<s:if test="pagePosition.toLowerCase().equals('buttom') || pagePosition.toLowerCase().equals('all')">
    		</s:if>
		 -->
    		<tr bgcolor="#FFFFFF">
    			<td colspan="20">
    				<ss:page value="pageForm"></ss:page>
    			</td>
    		</tr>
		</tfoot>
    </table>
